package com.annotationApplicationContext.ch04;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Data
@Component
public class Teacher {
    @Autowired
    private Student student;

    public Teacher() {
      log.debug("Teacher create");
    }

    private String name;
    private Double salary;
}
